import { setMapData } from '@/utils/map'
const state = {
  data: {},
  type: 'default',
  backTo: '/', // 默认点击返回跳转页面
}
const mutations = {
  SET_DATA(state, data) {
    setMapData(data)
    state.data = data
  },
  SET_BACK_TO(state, url) {
    state.backTo = url
  },
  SET_TYPE(state, type) {
    state.type = type
  },
}
const actions = {}
export default {
  namespaced: true,
  state,
  mutations,
  actions,
}
